home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13362 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  832 b 

  1. Path: in1.uu.net!tandem!usenet
  2. From: Anatoli Mandelchtam <tolik@tarley_pc.loc201.tandem.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Which is better????
  5. Date: Sun, 24 Mar 1996 22:37:17 -0800
  6. Organization: Tandem Computers Inc., Cupertino, CA
  7. Message-ID: <31563F1D.4DC2@tarley_pc.loc201.tandem.com>
  8. References: <3155559E.7120@dial.pipex.com>
  9. NNTP-Posting-Host: miket_home1.fnord.tandem.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (Win95; I)
  14.  
  15. gs94@dial.pipex.com wrote:
  16. > I have a project where data is passed between functions, as is fairly normal in a
  17. > C++ program. What I would like to know is:
  18. > Which is better / faster, passing data by pointers or by reference, e.g.
  19.  
  20. It is exactly the same. Just do not pass it by value. :-)
  21.  
  22. Regards,
  23.  
  24. Anatoli.
  25.